ifneq ($(KERNELRELEASE),)

#obj-m :=drv.o
obj-m:=timer_drv.o

timer_drv-objs:=timer.o #这后边可以加多个文件

else

#KDIR:=/lib/modules/`uname -r`/kernel
KDIR:=/home/supanyang/u-boot/linux-3.0.85

all:
    make -C $(KDIR) M=$(shell pwd) modules
clean:
	make -C $(KDIR) M=$(shell pwd) clean
    
endif


